package com.nuyoah.service;

import com.nuyoah.common.dto.LoginDto;
import com.nuyoah.common.dto.UserDto;
import com.nuyoah.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 存储所有用户的基本信息 服务类
 * </p>
 *
 * @author xyx
 * @since 2024-06-03
 */
public interface UserService extends IService<User> {

    User getByUsername(String username);

    void insertUserRoleBinding(Integer id, int i);


    List<User> getUserList();

    User getUserByUsername(String username);

    User getUserById(Integer ids);

    User login(LoginDto loginDto);

    String addUser(User user);

    String updateUser(User user);

    String deleteUser(Integer id);

    String existUser(Integer id);

}
